package com.cx.meta.dto;

import com.cx.meta.enums.CertificateType;
import com.cx.meta.enums.OprResult;

import java.util.Date;

public class CxUserLoginRecord {
    private String id;

    private String userId;

    private CertificateType loginType;

    private Date loginTime;

    private String loginIp;

    private String loginAddress;

    private String loginClient;

    private OprResult loginResult;

    private String cause;

    private Date createTime;

    public CxUserLoginRecord() {
    }

    public CxUserLoginRecord(String id, String userId, CertificateType loginType, Date loginTime, String loginIp, String loginAddress, String loginClient, OprResult loginResult, String cause, Date createTime) {
        this.id = id;
        this.userId = userId;
        this.loginType = loginType;
        this.loginTime = loginTime;
        this.loginIp = loginIp;
        this.loginAddress = loginAddress;
        this.loginClient = loginClient;
        this.loginResult = loginResult;
        this.cause = cause;
        this.createTime = createTime;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId == null ? null : userId.trim();
    }

    public CertificateType getLoginType() {
        return loginType;
    }

    public void setLoginType(CertificateType loginType) {
        this.loginType = loginType;
    }

    public Date getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(Date loginTime) {
        this.loginTime = loginTime;
    }

    public String getLoginIp() {
        return loginIp;
    }

    public void setLoginIp(String loginIp) {
        this.loginIp = loginIp == null ? null : loginIp.trim();
    }

    public String getLoginAddress() {
        return loginAddress;
    }

    public void setLoginAddress(String loginAddress) {
        this.loginAddress = loginAddress == null ? null : loginAddress.trim();
    }

    public String getLoginClient() {
        return loginClient;
    }

    public void setLoginClient(String loginClient) {
        this.loginClient = loginClient == null ? null : loginClient.trim();
    }

    public OprResult getLoginResult() {
        return loginResult;
    }

    public void setLoginResult(OprResult loginResult) {
        this.loginResult = loginResult;
    }

    public String getCause() {
        return cause;
    }

    public void setCause(String cause) {
        this.cause = cause == null ? null : cause.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}